package com.seckill.Common;

import lombok.Data;

@Data
public class CustomException extends RuntimeException{
    private Integer code;

    private String msg;

    public CustomException(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public CustomException(String msg){
        this.code = 500;
        this.msg = msg;
    }
}
